CC = gcc
LD = ld
CFLAGS = -mlasx -flax-vector-conversions
LDFLAGS =

TARGET = lasx_256 lsx_128

all: $(TARGET)

lasx_256: la64_lasx_256.c
	$(CC) -o lasx_256.out $(CFLAGS) $(LDFLAGS) la64_lasx_256.c

lsx_128: la64_lsx_128.c
	$(CC) -o lsx_128.out $(CFLAGS) $(LDFLAGS) la64_lsx_128.c

clean:
	rm -f *.o *.out

rebuild: clean all
